<div id="post-<?php the_ID(); ?>" <?php post_class(); ?> >
    <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
    
    <?php 
    if ( 'post' == get_post_type() ) 
    {
    ?>
    <div>
    <?php
        printf( 
            esc_url( get_permalink() ),
            esc_attr( get_the_time() ),
            esc_attr( get_the_date( 'c' ) ),
            esc_html( get_the_date() ),
            esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
            esc_attr( sprintf( __( 'View all posts by %s', 'twentyeleven' ), get_the_author() ) ),
            get_the_author()
        );
    ?>    
	</div>
    <?php 
    }
    if ( is_search() ) 
    {  // Only display Excerpts for Search  
    ?>
	<div class="entry-summary">
		<?php the_excerpt(); ?>
	</div><!-- .entry-summary -->
	<?php 
    }
    else
    {
    ?>
    <div class="entry-content">
        <?php the_content(); ?>
        <?php wp_link_pages( array( 'before' => '<div class="page-link">', 'after' => '</div>' ) ); ?>
    </div><!-- .entry-content -->
	<?php 
    } 
    ?>
    
</div>